import { AuthTypes } from "redux/constants";

export const Creators = {
  getSuccess: (data) => ({
    type: AuthTypes.GET_SUCCESS,
    payload: data,
  }),
  getLogoutRequest: () => ({
    type: AuthTypes.GET_LOGOUT_REQUEST,
  }),
  getLogoutSuccess: () => ({
    type: AuthTypes.GET_LOGOUT_SUCCESS,
  }),
  getCheckAuth: (data) => ({
    type: AuthTypes.CHECK_AUTH,
    payload: data,
  }),
  getFailure: (data) => ({
    type: AuthTypes.GET_FAILURE,
    payload: data,
  }),
};
